package com.bnlr.lrparking.model;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2017/6/12.
 */

public class CarM {


    /**
     * msgcode : 1
     * msg : 成功
     * data : [{"id":"7","userId":"9","carNum":"豫A60289","chejia":"","fadongji":"","color":"黑色","description":"","brand":"","model":""},{"id":"8","userId":"9","carNum":"豫A60883","chejia":"","fadongji":"","color":"红色","description":"","brand":"","model":""}]
     */

    private String msgcode;
    private String msg;
    private List<DataBean> data;
    private int recordCount;
    private int errorCode;

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public int getRecordCount() {
        return recordCount;
    }

    public void setRecordCount(int recordCount) {
        this.recordCount = recordCount;
    }

    public void setMsgcode(String msgcode) {
        this.msgcode = msgcode;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public String getMsgcode() {
        return msgcode;
    }

    public String getMsg() {
        return msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public static class DataBean implements Serializable{
        /**
         * id : 7
         * userId : 9
         * carNum : 豫A60289
         * chejia :
         * fadongji :
         * color : 黑色
         * description :
         * brand :
         * model :
         */

        private String id;
        private String userId;
        private String carNum;
        private String chejia;
        private String fadongji;
        private String color;
        private String description;
        private String brand;
        private String model;
        private String status;
        private String carType;
        private String photo;
        private List<PhotoUrl> photoList;
        public static class PhotoUrl implements Serializable{
            private String photoUrl;

            public String getPhotoUrl() {
                return photoUrl;
            }

            public void setPhotoUrl(String photoUrl) {
                this.photoUrl = photoUrl;
            }

            @Override
            public String toString() {
                return "PhotoUrl{" +
                        "photoUrl='" + photoUrl + '\'' +
                        '}';
            }
        }

        public String getPhoto() {
            return photo;
        }

        public void setPhoto(String photo) {
            this.photo = photo;
        }

        public List<PhotoUrl> getPhotoList() {
            return photoList;
        }

        public void setPhotoList(List<PhotoUrl> photoList) {
            this.photoList = photoList;
        }

        public String getCarType() {
            return carType;
        }

        public void setCarType(String carType) {
            this.carType = carType;
        }

        public void setId(String id) {
            this.id = id;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }

        public void setCarNum(String carNum) {
            this.carNum = carNum;
        }

        public void setChejia(String chejia) {
            this.chejia = chejia;
        }

        public void setFadongji(String fadongji) {
            this.fadongji = fadongji;
        }

        public void setColor(String color) {
            this.color = color;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public void setBrand(String brand) {
            this.brand = brand;
        }

        public void setModel(String model) {
            this.model = model;
        }

        public String getId() {
            return id;
        }

        public String getUserId() {
            return userId;
        }

        public String getCarNum() {
            return carNum;
        }

        public String getChejia() {
            return chejia;
        }

        public String getFadongji() {
            return fadongji;
        }

        public String getColor() {
            return color;
        }

        public String getDescription() {
            return description;
        }

        public String getBrand() {
            return brand;
        }

        public String getModel() {
            return model;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "id='" + id + '\'' +
                    ", userId='" + userId + '\'' +
                    ", carNum='" + carNum + '\'' +
                    ", chejia='" + chejia + '\'' +
                    ", fadongji='" + fadongji + '\'' +
                    ", color='" + color + '\'' +
                    ", description='" + description + '\'' +
                    ", brand='" + brand + '\'' +
                    ", model='" + model + '\'' +
                    ", status='" + status + '\'' +
                    ", carType='" + carType + '\'' +
                    ", photo='" + photo + '\'' +
                    ", photoList=" + photoList +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "CarM{" +
                "msgcode='" + msgcode + '\'' +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
